import os
import sys

Paths=['/opt/coopgis/', '/opt/coopgis/djangoproject/', '/opt/coopgis/djangoproject/views/']
for i in Paths:
    if not i in sys.path:
        sys.path.append(i)

os.environ['DJANGO_SETTINGS_MODULE'] = 'djangoproject.settings'
os.system('export DJANGO_SETTINGS_MODULE=djangoproject.settings')
import django.core.handlers.wsgi
application=django.core.handlers.wsgi.WSGIHandler()